package com.techwells.learningkites.model;

import com.techwells.learningkites.base.KitesViewModel;
import com.techwells.learningkites.networkservice.KitesServiceMediator;
import com.techwells.learningkites.networkservice.model.User;
import com.techwells.learningkites.networkservice.model.UserProfile;
import com.techwells.taco.tasktool.TaskToken;

public class SettingUserinfoViewModel extends KitesViewModel {
	
public int returnCode,basicReturnCode;
public UserProfile userProfile;
	
	@Override
	public void paddingResult(TaskToken token) {
		// TODO Auto-generated method stub
		super.paddingResult(token);
		String method = token.method;
		
		if (method.equals(KitesServiceMediator.SERVICE_GET_PROFILE)) {
			userProfile = (UserProfile) response.getResponse();
		}else if (method.equals(KitesServiceMediator.SERVICE_DO_BASIC)) {
			basicReturnCode = response.getReturnCode();
		}
	}

}
